package com.norman.sorry.core.tiles;

import java.awt.Color;

/**
 * Represents a slide factory. This interface requires a few basic methods that
 * are critical to the game.
 * 
 * @param <E>
 *           the type of slide this factory produces.
 * 
 * @author Brian Norman
 * @version 0.0.1 beta
 * @since 0.0.1 beta
 */
public interface ISlideFactory<E extends ISlide> {

   /**
    * Creates a new slide with the specified color.
    * 
    * @param color
    *           the color of the slide.
    * @return a new slide.
    */
   public E create(Color color);

}
